<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/style2.css"/>
<script language="javascript">
function validate(){
var inputFirstname=document.getElementById("uname").value;
if(inputFirstname.length==0)
{	
	alert("请输入用户名！");
	return false;}
	/*else{return true;}*/

if(uname.length!==0)
{
var inputPassWord=document.getElementById("password").value;

if(inputPassWord.length==0)
{	
	alert("请输入密码！");
	return false;}
	else{return true;}}}

</script>
</head>
<body>
<div id="Layer1">
<div id="Layer2">
  <div align="justify"><h1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;首页</h1></div>
</div>
<div id="Layer3"></div>
<div id="Layer5">最新更新的博文
<div id="Layer11"></div>
<div id="Layer12"></div>
<div id="Layer13"></div>
<div id="Layer14"></div>
</div>
<div id="Layer6">登录
<div id="Layer16">
<div id='msgs'>${messages}</div>
<form action="<%=request.getContextPath()%>/LoginUser" method="post" class="rg" onSubmit="validate()">
<table  width="245" height="120" border="0" cellspacing="1" >

    <tr>
      <td colspan="2">姓名：
      <input type="text" id="uname" name="uname"/></td>
    </tr>
    <tr>
      <td colspan="2">密码：
      <input type="password" id="password"  name="password"/></td>
    </tr>
    <tr>
      <td width="119"><input type="submit" value="确定" onClick="return validate()"></td>
      <td width="119"><input type="button" value="注册" onclick="javascript:location.href='<%=request.getContextPath()%>/jsp/yemianJSP/zhucebiao.jsp' "></td>
    </tr>
</table>
</form>
</div>
 
</div>
<div id="Layer7">滚动图片<div id="Layer17"></div>
</div>
<div id="Layer15">双体实训</div>
</div>

<p class="cp">
  <center>
    Copyright &copy 2012项目三部揽月小组
  </center><a href=""></a>
</p>

</body>
</html>